/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package paquete;

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author JuanJo
 */
public class Imagen extends HttpServlet {

    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {

        PrintWriter out = response.getWriter();

        out.println("<html>");
        out.println("<head>");
        out.println("<title>Servlet con Imagen</title>");
        out.println("</head>");
        out.println("<body>");
        out.println("<h1>Servlet Imagen at " + request.getContextPath () + "</h1>");
        out.println("<div align="+"center"+"><img src="+"RCZ.jpg"+" width="+"1024"+" height="+"768"+" alt="+"Peugeot RCZ"+" longdesc="+"Auto Peugeot RCZ"+"></div>");
        //out.println("<img src=RCZ.jpg>");
        out.println("</body>");
        out.println("</html>");

 
        //out.println("JuanJo =)");
    }
}